//
//  UIButton+Extension.swift
//  weibo-01
//
//  Created by 源 何 on 16/9/23.
//  Copyright © 2016年 何源. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title: String, textColor: UIColor, fontSize: CGFloat) {
        
        self.init()
        
        self.setTitle(title, for: .normal)
        
        self.setTitleColor(textColor, for: .normal)
        
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        
        self.sizeToFit()
        
    }
    
    
    
}
